package com.wiloon.java8x.thread.executor;

public class ExecutorThread implements Runnable{
    private final String name;
    private final int delay;

    public ExecutorThread(String name, int delay) {
        this.name = name;
        this.delay = delay;
    }

    public void run() {

        System.out.println("start: " + name);
        try {
            Thread.sleep(delay);
        } catch (InterruptedException ignored) {
        }
        System.out.println("complete: " + name);
    }
}
